// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'lib-flexible/flexible'
import components from './components/index'
import 'regenerator-runtime'
// import testLogin from '../../utils/LoginUtil'
import NativeUtils from '../../utils/NativeUtils'
import { nativePlugin, AppRouterUtils, getUrlParams } from 'vue-xiaobu-utils'
import 'mint-ui/lib/style.css'
import store from './store/store'

Vue.prototype.$AppRouterUtils = AppRouterUtils
Vue.prototype.$getUrlParams = getUrlParams
Vue.use(nativePlugin, {
  platform: false // true为cordova端，false为微信端
})
// testLogin()
Vue.config.productionTip = false
Vue.use(components)
Vue.use(NativeUtils)
Vue.use(require('vue-wechat-title'))
Vue.prototype.$EventBus = new Vue()
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})

if (window.FastClick) {
  window.FastClick.attach(window.document.body)
}
